// app.js
App({
    globalData:{
        screenWidth:375,
        screenHeight:667,
        statusBarHeight:20,
        windowHeight:0
    },
    onLaunch(){
        wx.getSystemInfo({
            success:(res) => {
                this.globalData.screenWidth = res.screenWidth
                this.globalData.screenHeight = res.screenHeight
                this.globalData.statusBarHeight = res.statusBarHeight
                this.globalData.windowHeight = res.screenHeight - res.statusBarHeight - 44
            }
        })
    }
})
